make functions twoSum and myTranspose
more basic javascript functions