Using SML write a version of sumPairs that sums each component of the pairs separately, returning a pair consisting of the sumof the first components and the sum of the second components
fun sumPairs(nil) = 0
| sumPairs((x,y)::zs) = x + y + sumPairs(zs);
val sumPairs = fn : (int * int) list -> int