A subsequence matching algorithm supporting moving average transform of arbitrary order in time-series databases using index interpolation