fix #59. Add histogram aggregate function