History of perpetual motion machines