Data Structures and Programming Techniques for the Implementation of Karmarkar's Algorithm