This function will remove rectangles in a list that are entirely contained in another rectangle in the same list.