Add the implement of SHOG (although finished, the code is somewhat ugly, need to be cleaned).