store the length in the Vector for more efficient retrieval. closes #178