Threaded Implementation of the Berkowitz Algorithm with step complexity log(n)