layout algorithm utils
interest_point and geometry refactorization