A weightless rod of length $2 l$ carries two equal masses $m$, one tied at lower end $A$ and the other at the middle of the rod at $B$. The rod can rotate in vertical planc about a fixed horizontal axis passing through $C$. The rod is released from rest in horizontal position. The speed of the mass $B$ at the instant rod becomes vertical is
(a) $\sqrt{\frac{3 g l}{5}}$
(b) $\sqrt{\frac{4 g l}{5}}$
(c) $\sqrt{\frac{6 g l}{5}}$
(d) $\sqrt{\frac{7 g l}{5}}$