RCBD design with R in trial design tool
refactoring trial design calculations outside of design dialog controller
add tests for TrialDesign