Automatic bedding discriminator for use with digital wireline logs