fix the bug when swapping the same variable for swap function in Search.c
fix bug in swap function of Search.c