FACTOR: Improve calculation of Kaiser-Meyer-Olkin and add a test