Finished shiftArray, processSpace, and peaks. Work correctly on test image