Tried a hueristic method. Does not work very good.