recognition: minor fix
recognition: fixed fast algorithm