Implemented linear history parser