Add solution for regular expression matching