Implement gradient, mean, and std reducers.
Add date and double helper functions.