Code to compute prediction variances for blocks. Something isnt exactly right so it will need fixing.