Modified the sum method for scalars.
Modified library_ops.hpp

Modified the header file to declare the scalar sum method.