Improved MortonCode

bugfix + extended interface (required for nosql experiment)