Added skeleton for implementing a line combination algorithm. @tmotu it's your time ;)