Merge pull request #1501 from votjakovr/feature/gp_refactoring

Add obtain_from_generic() method and improve print_result() in CGradientResult class