Algorithm refactoring, implemented into GUI

Refs #10065