Wavelets and other bases for fast numerical linear algebra