SPFC space-filling curves Hilbert curve implementation with encode/decode functions for encoding n-dimensional data to a sequence number and decoding a sequence number back to an n-dimensional point. Code should be configurable to number of dimensions.