vastly simplified max continuous sum problem