add multithreaded solution that uses ForkJoin framework