Adding method to get recommended row and col from costMatrix