implemented operators for array