Added support for B slice deblocking

Also less duplicated code in bs calculation