refactored into laplacianSmoother class

also fixed stupid bug <.< sorry about that