get matrix G and B size