Complete twoSum and tranpose array methods