A Fundamental Algorithm for Dependency Parsing (With Corrections)