Shell sort example for educational/experimental purposes