Improving the node find and delete routines.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>