Takes filname from command line input, as in "java StableMarriage < file.in"