Added algorithm; changed extension to .mm