KL shares end marginally higher