Code Contribution: Implementation of the B-MAC Protocol for WSN in MiXiM