modularized vrcd and changed name to vmra (variance maximizing rate adaption)