Simple Ruby implementation of a spatial hash