Effect of finite size on cooperativity and rates of protein folding.