Made BPCS more efficient and fixed issues with calculating complexity. Updated threshold to be a nicer number