added Lines algo uniform in everything and derandomized the algo uniform in D