Sex and the eukaryotic cell cycle is consistent with a viral ancestry for the eukaryotic nucleus