update bellman-ford and quicksort

3 way partition and random number are introduced in quick_sort.cpp;
bellman_ford.cpp is refactored