Hilbert Curve discrete approximations.

Functions to map (x, y) coordinates to one-dimensional distances and vice-versa.