Fix rank function. 

Check #34. I'm not sure what the best way to check value for zero except comparing it to some epsilon constant. So I implemented this approach here. `*eps*` constant dynamic so it can be rebinded for user needs.