Fix problems with binarySearch

1. A bad if statement made it impossible to search for 0 in a list of numbers.
2. Also updated AnimationViewModel to work if 0 is a specific tick value.