adjacent_find algorithm and tests, ASL-inspired projection functions