Add an overloaded version for generating random block matrix