Some new util functions manipulating rectangles