added code to computer winning histogram distributions