Multiscale algorithms for structured matrices : fast solvers and deep learning