Find the Rank of a Matrix with a Parameter