Added line code for 3+ points line estimation