added .gitignore
Added main functions for compiled speed comparisons. Refactored version running 22 times faster, with both files compiled using -O2 compiler optimizations.