adding mergesort and djikstra