update to commons math 3, add correlation matrix, some extensions/fixes