Update README.md

Add solution from Andreas Presthammer on SO