find AB if BD is a median of triangle ABC