Binary AND implementaion