implemented initial value sorting(quick sort implementation)