Text this: Exact and Approximate Algorithms for Polytree Learning