Algebraic cohomology groups and loops