Changes to vector2d and vector3d

Added typecast vector<double> to vector2d and vector3d
Added typecast (double *) to vector2d and vector3d
Fixed bug on cross product on vector3d