add junit dependency, add correct impl of regular expression with
recursion and test cases