A 58,000-square-foot expansion at P.S. 87 in the Wakefield section of the Bronx is reshaping both the school’s footprint and its long-term performance.