An algorithm that decide if a finite deterministic automaton accepts a set definable in FO[<,mod]