small vector calculation lib