Converts Hilbert curve to linear matrix indices.
[x,y] = hilbert_curve (2); hc2ind (x, y); ans = 1 2 4 3