i needed to get the cartesian product of 2 lists and the "cartesian product" of 3 lists for 210 hw. so here, have more bad SML code.