Bugfix in seperation algorithm. Added BisectionMethod.
Added method to calculate derivative to AFucntion. Code cleanup.