Goal Recognition with Variable-Order Markov Models