Using 2D find for first element instead of find and ind2sub in location_match (3/5 time of previous commit version).