Created multilevel_haar function which generates a Psi matrix