Implement and test adjacent_find