Added sorting & binary searching