reimplemented quadkey to tile -- fixes #1