chabged preallocation size for transaction vectors and type of elements inside  to pointers
added comments