Added position tracker

Added a char to keep track of the last filled entry. The program is now
at least twice as fast as the inefficient version