shellsort implemented and tested