Adding function for algorithm selection
Merge remote-tracking branch 'origin/master'