algorithm find corners