fixed LSTD trying to solve singular matrices