Implement a override equals method to task subclasses

needed by the update, delete, done, undone and undo methods of the
Controller component