Replaced data() call with a front() call on a STL vector

the data function is a C++11 feature which we are not meant to use yet...