google doesn't reveal totally its ranking algorithm but there are some factors of it which are well known like on page optimization and building as many quality links to your site as possible and just have original content for your site. By doing all this you can get the best results.