Handle homology of manifolds