Change method of comparing distribution

Ripley's test OP
Clean formatting