added +1s to indexes while adding originalArray values to shifted array