Fixing the algorithms into minipages