Completed most arithmetic and logical operators for general cases.