Modififed quick sort and swap to take void *, thus generalising the
operations independent of arguments