*) This change reverses the patterns to bits counting from right to left