Prime 3-manifolds and the doubling operation