finish prototype of beta.var.hat
debug:
1. handle 0/0 = 0
2. debug of n
enhance recurrentR:::Sigma.hat.gen