Fast Wavelet Transforms for Matrices Arising from Boundary Element Methods