quick sort in a threeway method.

during the swapping of elements take care of equal elements efficiently.
the elements less than pivot , equal to and greater than pivot wud be the three different classifications instead of only two(first and last). Considered as better than the normal implementation.