3 row vector implementation passing all tests