Max matching order

Algorithm didn't allow for edge ordering u-v and v-u in undirected graphs

Addresses #1022