I do not quite understand you. I need a mask or rule where I can find an algorithm masks:
?2? 1? 1? 1? 1? 1? 1? 1
where ?1 is ?d and ?l
where ?2 is ?u
?2?1?2?1?1?1?1?1
where ?1 is ?d and ?l
where ?2 is ?u
and many more methods
?2? 1? 1? 1? 1? 1? 1? 1
where ?1 is ?d and ?l
where ?2 is ?u
?2?1?2?1?1?1?1?1
where ?1 is ?d and ?l
where ?2 is ?u
and many more methods