Add 3d correlation based on blas matrix multiplication 

Do you really need to raise the tolerance? Why not use smaller sizes tensor, it will cause less problems.