Theoretical study of topological properties of ferromagnetic pyrite CoS2