use char instead of int for matric A (values are +1, -1, 0)

make struct element smaller for the common case
Makefile: build with optimizations by default (-O3 -march=native)
print debug information from main