gl2bpp function

Converts a genlight object into a format suitable for input to the BPP program