Fix major issue with generatePath function
Fix major issue with generatePath function

The function was intended to use a boolean vector to subset another
vector, but the boolean vector was being saved as a numeric instead of
logical which was causing unexpected behavior

Dordt-Statistics-Research/LaByRInth,Dordt-Statistics-Research/LaByRInth