Biclustering gene expressions using factor graphs and the max-sum algorithm