Update suffix_array.cpp

Fixed a bug that limited this code's usage for strings containing lower-case letters only.