Geometrical unified theory of Rikitake system and KCC-theory