Fixed PEP8 violations, and type-checking
Wrote a linear approximation in RankScaler
PEP8 fixes