fixed toMid bug that flipped x/y interleaving

when we created a morton id from an `(x,y)` coordinate, we interleaved
the bits starting w/ the `y` bit, but we need to start w/ the `x` bit,
otherwise the sorted morton id's aren't in the same order as a
depth-first pre-order traversal
added more tests
added un-tested euler tour