added brute force maximal sum algorithm