Reusing the function that correctly loads haar wavelets from file.