Improvements for A_Star_Search in Lua

Hi,

I brought a minor change to the A_Star_Search implementation, for the sake of genericity.
I was working one some other search algorithm (to be pushed soon), when this idea occured to me.
I found it good enough, hence the changes.
Now, it is a full library going in there ;)

Regards,
Roland.