Two straights ABI and CDI, whose bearings are respectively 45° and 332°, are connected by a straight from B to D. The coordinates of B and D in meters are: B(e, n) = (650, 340), D(e, n) = (870, 475). Determine the length of the straight BD.