Changed some lists to enumsets, renamed lesserBoundaryCorner and greaterBoundaryCorner to min and max for sanity.