Moved: This thread is more suitable in
Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
An aside note: a Programming question is not necessarily Linux related. Moreover the OP seems to run on a MAC OS system. This was just a mis-placed thread.