Fixed a thing.
Removed MTPair, fixed errors, added error handling to main, changed return types from MTPair to int[][];
Merge pull request #2 from niode/master

Fixed stuff.