fixes and improves robinson_foulds function. Also adds expand_polytomies method