with matrices B and S output for debugging