This is a practice when learning algorithms