Fix in correlation_dimension for older numpy versions
Update for sandbox test script