sample programes to learn and practice algorithms