mergesort,binary tree,bellmann ford and wf algs