Generalized biideals of rings. I