sum and prod list functions

Signed-off-by: Alexander Skjolden <alex@plastboks.net>