Algorithmic dimension of nilpotent groups