Parallel version implemented