function search(twoD,oneD){ for(var i=0;i