Freezing transitions in a system of two-dimensional octupolar multipoles