How Amazon's Algorithm Actually Works (and How to Beat It)