Birev improvement
Faster versions