Liquid-liquid phase transition and glass transition in a monoatomic model system