Small vector tweaks and start hashing out matrix implementation.