Modified memory optimisation section

Added a section introduction.
Modified memory optimisation.

Added sub sections on specialised functions. Code generation almost done.
Modified stuff.

Added sections in optimisation chapter.
Added subsection inside bounds check elimination.