added info_gain function
put info funcs into own file