Replaced &vec[0] syntax by vec.data().
Merge pull request #601 from Morwenn/use_vector_data

Replaced &vec[0] syntax by vec.data().