use scoreNode to implement different searching method