Can now sum arrays and print to result.out