A gradient method on the initial partition of Fiduccia-Mattheyses algorithm