Ockham algebras