The vector/matrix operations fail to compile in windows due to eigen incompatibility with windows compiler. Here we opt to use a non- vectorized model for windows platform.