Add types to operations and operation matrix.