How to find rational numbers between two rational numbers