Reactmine: a statistical search algorithm for inferring chemical reactions from time series data