Fix the index defect that count overflow.
1. optimal memory usage.
2. Refactor the code.
Implement py frontend.
Add cquery project.
modified gitignore