Code is working with new numpy arrays, but VERY slow for large haplos