Copyright (c) 2002-2010 by Alberto Bemporad