if one side is either MIN or MAX, takes all the data and puts in one otherwise splits on the median value