Add implementation and examples of getgrgid