Finished complete2 function

Uses apply with factor ordering