Dtest function

Conducts correlational D-test from stochastic mapping