Tree inference for single-cell data