adding spatial hash class. closes #4