Old programs

Fixed old programs
Added not enough memory error in AddElm function
Added final version of stack calc