Krussell & Smith algorithm