Added method for deriving parse tree from chart.