Add definition of Fisher-Yate shuffling
special weierstrass implementation to run in cpu parallel mode