Consolidating sum zero and sum target solutions. Work in progress. Currently error on compare value function.