Derivative

Added Derivative class and updated the other CYK classes. I think this
is all down now. we shall see.