added parallel algorithm for Windows based system