Program solves the stable marriage problem using a 2D array implementation.