Initial commit of SBS sampling. Also added SBS to the planes example.