A monatomic system with a liquid-liquid critical point and two distinct glassy states