Practicing some basic CS algorithms