Divide and Conquer algorithms for Java projects