Stock price prediction usingk-medoids clustering with indexing dynamic time warping