fixed a division by zero bug in row_kld in linalg.py