Closes #2360. Fix tiebreaking.
some cleanups in common_test, speedup.
Make fit_transform and fit().transform() equivalent in nmf
slight speedup
some cleanup