set blacs_grid whose major is specified by a template parameter, using boost::is_same