Fixes to pdct algorithm, all working now. Need to fix header fixed size thing since maximum number of triple is too low.