JADE algorithm function