added linear and binary searches