build_weights adds weight to an edge
Changed the labels of edges to have headword, modified word and other details to build weights
implemented inside algo and viterbi. get_backpointers pending
Implemented to get backpointers
Implemented outside algorithm
Fixed rconstit2. Code now gets best path