Pass vectors by a reference

Saves couple of time which used to waste on copying objects,
also solves win32 compilation errors caused by alignment.