Update RegularExpressionMatching.cpp

Another implementation...