Stack And Queue Implementation Using Python For Math