creating training and test vectors separately