A LINEAR ALGORITHM TO FIND A RECTANGULAR