fixed cluster bounds calculation in grid clustering