divide data into test and learning data