in minimize, eq_constraints is optional parameter
added method for board casting and finished regression example
made broadcasting automatic
adding images for regression example