Implemented base_converstion for stack tester