rhytm.py: Bjorklund’s algorithm
modified:   rhytm.py