Initial bitlib test with addition based perm function