add sorting algs + tests

I have add some sorting algs + test. I have also change the project so it could be compiled with vs2010.