Added double implementation of Hungarian algorithm.

I needed to handle cost matrix with doubles in it, so I've modified the
original code to handle doubles.