Probabilistic Algorithms and Straight-Line Programs for Some Rank Decision Problems