add REC algorithm. refactor algorithm choice page