Used vec.data() instead of &vec[0] whenever possible.
Merge pull request #598 from Morwenn/use_vector_data

Used vec.data() instead of &vec[0] whenever possible.