Practicing some algoritm and data struct