Changed np.hstack and np.vstack to use tuples instead of lists.
This was to test if python was any faster at building tuples, but it didn't seem to make a difference