http://oj.leetcode.com/problems/regular-expression-matching/