Fixed vector related code
Added unit test beginning