Basic statistics: binned frequencies

https://kobotoolbox.atlassian.net/browse/KCAT-63