Finished advance kernel. BFS changed to use advance+filter. soc+kron has bugs. TODO: fix it.