If A(0,4,1),B(a,b,c),C(4,5,0),D(2,6,2) are the consecutive vertices of a square, then the distance BD is: