initial commit of MSD algorithm