Added f-measure loss

This adds the f-measure loss to Breze's losses, and controls the fact that a loss might be not element-wise in the general supervised loss method of Breze.