New pattern matching code and update gitignore
- Changed gitignore format to help adaptiveness to new implementations and tests
- Added new elementry pattern matching algorithm class in ai system.