update; binary and sequential search added