Added nearest neighbor functionality for a given price series