An Efficient Direct Method to Solve the Three Dimensional Poisson’s Equation