added average and deviation functions to data_mining.py