Added another test to transfertest
Removed transferAndFree functions. Implemented transferVector and transferMatrix in DeviceToHost.