Code for replicating the agent based simulation presented in the paper "The collective dynamics of bestseller search"