implementation of recurs find possible rectangles OK