Algorithms To Approximate Solutions Of Poisson'S Equation In Two And Three Dimensions