[src] Added a clone method to the distribution class