L is now a sparse matrix