add sum function for array of numbers

this function is used to sum an array of numbers and ignores non numerics