Added Bjorklund algorithm stuff for calculating patterns