Change flood fill method defination and incress speed.

Chang defination and parameter of flood fill method so it take less
parameter.

Make some change to incress speed and remove code which is not require.