RSRS slope quantization strategy source code.py