Appendix A Implementation of Taylor Expansion on Unit Hamming Sphere