Calculate QuadKey