added abs fn to 3dvect
added abs fn to 2dvect
added peek fn to fifo
add return value
changed QUAN_INT32 to int64_t