Use cstdint header now for fixed width int types.
Included sorting test.
Added -std=c++11 argument.