generate train test instance matrices done