moran function

Compute Moran's I