optimation of shared mem SUMs, not tested