simple implementation of the stable marriage algorithm including a test case.