Add suffix array algorithm

Please note that I modified Makefile to support c++0x compile, and verified that  all algorithms passed compile on my machine.