added linear and polynomial find_max funcs to test