Clean up: flatten reference sample buffers in intra prediction
Replaces 2-dimensional arrays for storing reference samples in intra prediction with two 1-dimensional arrays. This reduces memory usage for these buffers from 792KB to 6KB.
Replaces 2-dimensional arrays for storing reference samples in intra prediction with two 1-dimensional arrays. This reduces memory usage for these buffers from 792KB to 6KB.