Add global index number to Element and Node

And code was refactord with using new GlobalIndex