Fixed a big bug in .gitignore
Fixed a compile error when using clang
Fixed compile errors

Added #include <algorithm> for std::sort
Added #include <cstdlib> for std::strtol and std::strtod
Added #include <cmath> for HUGE_VAL and std::fabs
Replaced abs with fabs because its argument is double
Merge pull request #5 from s-yata/fix-errors

Fixed compile errors
Fixed compile errors with clang++ c++0x mode.