Removed matplotlib dependence.

Created clones of date2num and num2date. Added a time_array class.