Summing along directions in matricies
Special methods for sum to avoid ambiguities