Basic implementation of the A* parsing algorithm introduced by Klein and Manning in 2003