If A=(3,1,2),B=(0,−1,−1),C=(−1,1,0) are three consecutive vertices of a parallelogram ABCD then the length of the diagonal BD is