add sum function #308

Added numpy sum function to function library.