added max sub array sum for circular scenario