fix: minor
optimizer code separated
use bulk analyzer and separate optimal form search
remove best pattern search from analyzer
fix bug with offset