Updated linked list and implemented function to get bit value of unsigned char