Finish porting article-map program from Python.
Merge pull request #2 from cocodrips/greedy

Finish porting article-map program from Python.