Add calculation for mid points.
Merge branch 'master' of github.com:allanlw/hyper3