Algorithms I learnt in class