Class project of Algorithm