created a baud2ubrr function