Original commit of NAL adaptive algorithm as described by Keidser 2013. Still not working perfectly, will need to be revised.