Searches, updates, inserts and deletes on two dimensional array