First approach to the chi square test
Some optimizations for chi square
Added scripts for testing
Improvements to the chi square, everything is processed in registers without any local memory
We don't need L1 anymore, changing preference to shared