Corrected vector magnitude calculation. Corrected program execution.
Merge pull request #7 from Ritaja/newExecEnv

Corrected vector magnitude calculation. Corrected program execution.