edited LinearSearch