Introduction to bit operations and practical tips