added more bit operations and finished addition using arrays