How did the great compromise settle the problem of representation and Congress?