Real-time STOMP algorithm
stompi_update(.mp, new_data, history_size = FALSE)a TSMP object of class MatrixProfile.
new data to append to original data.
an int or FALSE. (Default is FALSE). Keep only this amount of data in
the object. The value is for the data, not the matrix profile. Notice that the lmpand lpi will
be inconsistent when repeatedly updating limiting the history size and thus will affect
the mp and pi.
Returns the input .mp updated with the new information.