Fix bugs in maxsubarray

I found the bug which had caused the function which handles the
subarray which crosses the mid element not to consider the first
element when considering the first half.
I have also put into place a way for the actual subarray whose sum
is maximum to be displayed.

Signed-off-by: Aditya Prasad <adityaprasadiskool@gmail.com>