Formula method for Theil-Sen

Source rallfun first.