Added destructor. Added min/max search
Added search function