extracted Q-Value computation from bellmanBackup()