Started on the iteration, not need to rewrite matadd.h and need to make matrandom.h.
Fixed the loss functions for categories and is ready for accuracy calculation on page 129