multythreding of the read and find borders methods