Added bfs and dfs algorithms of matching a regexp (they don't work)