Python Find Element In Sorted Matrix