Max Horn SAT and the minimum cut problem in directed hypergraphs