added swaptest.cc
using std::distance instead of  using last-first to get array length
added more test to determine why template stlport quicksort is faster than others