ENH: matrix2timeseries.R and updated cmake