Preordered forests, packed words and contraction algebras