Magnetism of ultrafine particles