Implemented algorithm selection