move common methods from drived classes of inference methods to base class
Merge pull request #1346 from votjakovr/feature/gp_refactoring

Move common methods from drived classes of inference methods to base class