Implemented a new interface for the sum kernels. Sum(buffer) computes the sum of buffer, returning the result as a float. Sum(bufferA, bufferB) computes the sum of bufferA while storing the result in bufferB AND returning the result.