Created by: qingqing01
Failed in debug mode since the reduce dimension in Eigen. Now implemented by max_element instead of Eigen.