Solving Laplace's equation in a rectangle by alternating direction implicit methods