called rand instead of randn -- fixed
histogram of distances to check probability function
removed experimental derivative computation -- not yet working and slowing down distance computation