bubble and shake sort