added rowwise and colwise sum methods in linalg

@karlnapf The last one! :) Sending updated CustomKernel sum methods in the next patch.