Solving PDEs using wavelets