Stable marriage algorithm simulation