Castanet: an algorithm for (semi) automatic creation of facet hierarchies