calc_rsi function

Calculate Relative Strength Index (RSI)