rewrite findCriticalBlock using notebooks algorithm

Signed-off-by: xiehuc <xiehuc@gmail.com>