Added 3D vector implementation