My algorithm practice