complete PAL.c and add vector operations