added coctail sort (shaker sort)