Code for Bellman Ford algorithm.
Code for quick sort.
Code for merge sort.
Code for heap sort.