Efficient Implementation of Scheduling Algorithms for Optical Burst/Packet Switching