Fixed AMD dependencies. Started writing amd test cases. Added binary
search.