Debugging and optimization

some more upgrades to the debugging and optimization chapter. Probably some are controversial, so will probably have to discuss some things here. Especially the section on Big-Oh notation is perhaps a bit much. However the ideas of a single for loop being cheaper than two are probably worth to communicate.