only easiest done
border rectangle O(n^3)
RB Tree