Added Stoogesort implementation