Working and tested Match system

Replaced the old preferences system with the NRMP match algorithm.