pamela: ludcmp and profit segfault fix

'profit' was segfaulting when large source extraction regions exceeded the
maximum size that 'ludcmp' could handle. Maximum size in 'ludcmp' increased and a
test has been added to 'profit' to halt if this increased size is exceeded.