An attempt at programming the resident matching algorithm