update code

1. code added in the algorithm1
2. Adding the projects for algoritm2 and algorithm3.