Capitalize variable names M for masses to eliminate confusion with (ell,m)