Added gear range calculation for derailleur gear and internal gear hub.