Added the printing of statistics.
XMerge branch 'master' of https://github.com/DAMA-UPC/SCD