Add .gitattributes
Add build.bat for MSVC2012
refactoring benchmark function
refactoring benchmark function

- log / error mesasges
replace stdio with cerr
add more const qualifier
replace initialize loops with STL algorithm
replace magic number with DBL_MAX
remove using namespace std
add void to avoid VC++2012 code analysis warnings
add size_t() cast to satisfy VC++2012 code analysis
add -pedantic and <cfloat>