Should include <algorithm>, or it will cause compiling error on Android an linux.