A stability-enhanced preconditioned Haar wavelet scheme for the solution of Poisson and Helmholtz equations | Synapse