add splitData() which splits a dataset of m rows of samples into a training/test set
add roundTo() which rounds a number to certain precision