Added algorithm.* and inttypes.h for MSVS build
Merge pull request #140 from troky/nfactor

Added algorithm.* and inttypes.h for MSVS build