added adjustments for optimizing algs

f1 score implemented