memory bug fix
ldf working for searn