Create Problem Alg2

the result isn't same as given one;
also need to free the pointer
Update and rename Problem Alg2 to working Alg2

 pointer problem
Merge pull request #1 from SuzyWu2014/patch-1

Create Problem Alg2