Use cmake macro to build examples
Add second constraint in the quadraticFuncion example
Add testMatrix