Bug in maxSubSum.cpp corrected.