added isPrime
Added swap, sorted iterator, compare and diff