Modified the Applicative instance implementation so it does not usee lists anymore
ref' and namely interpolation was causing index out of bounds, also inside was ignoring last right and bottom pixels. Fixed.
switched to comparing bools rather then doubles, added some logic to prevent out of bounds possibility
added one positive check for the edge in interpolation
Merge pull request #7 from lehins/master

Applicative