Working On getmin and git max function