Data analytics firm Palantir (PLTR) is the top-performing stock in the benchmark S&P 500 index so far this year.