Using some C++11 features and try to reduce hardcoded values
To get rid of hardcoded values on implementation, they are replaced with some functions which are already in standard library.
To get rid of hardcoded values on implementation, they are replaced with some functions which are already in standard library.