Renamed mins, maxs to min, max. Small refactoring on cullLocalBox.