Wrote the feistel function.