An spatial hash grid implementation