Added vector addition and multiplication code
Fixing a bug in the max value computation logic