mex'd recursive CMM algorithm
display optional in momentumTest script