Moved to array prototype, added search types enum