Added MSVS project
Fixed a small issue of min / max methods