Added dist_cavalli and tests.
Merge branch 'master' of https://github.com/dyerlab/gstudio