Compiling & Flawed Code

Code compiles with correct size vectors but statistical values are
inaccurate.