Reverse, sum array functions