Implement torflow's scaling method in sbws
As commented in https://github.com/pastly/simple-bw-scanner/issues/182#issuecomment-410703335
issue