Added accurate parallel implementation