modify test code for lll_d and add exit condition for lll if Gram matrix supplied