Algorithms for Rectangular Robot Motion Planning