Fix typos

"factor" -> "factory"
"descired" -> "desired"
Merge pull request #596 from cubranic/patch-1

Fix typos in "Functional Programming"