iniitalize left and right expand array correctly