AdaptiveControl: fixed pseudoInverse function to accept generic matrices as input