Implement NumericDatum

- NumericDatum is almostly completed.
- added unit tests.