Small change to encourage inlining

Moved ```byteSwap``` functions from ```tbytevector.cpp``` to ```tbytevector.h``` in order to encourage inlining.