Fixed (several) bugs in MB-LBP implementation; added functions to extract LBP without checks.