Java 7 SE Search on array with threads and do some operations