An untested, but working, implementation
Cleaned up and commented, tested on a handful of big inputs now
Added some personal notes to the README, and added some comments to the main script. Need to deal with weird input formats better.