A java implementation of the stable marriage problem (for a class)