Port LordHavoc's areagrid from Darkplaces to optimize collision detection