use std::vector<T>::back fucntion to replace the orignal inefficient method
use clang-format
use clang-format with google style