Bins

Function to bin samples and variables