Fixed solve_2_bones to work with any pair of two bones without restrictions.