add incremental update of king saftey
update SEE to reduce overhead
fig bug in mtd(f)-step