Hi Osama,
To add a new algorithm what you need to do is extend from the appropriate Abstract class and implement the required methods. For example, if you are going to add a new classifier you will extend from AbstractClassifier and implement resetLearningImpl, trainOnInstance, ...
My advice is that you base your implementation on an existing classifier, for example, use NaiveBayes.java or OzaBag.java implementation as example.
Best Regards,
Heitor