Dealing with repeated elements more efficiently,
adding binary search,
using object-oriented approach.