added sliceFoldi
tensor: added a sample diagonal routine